package com.dy.lock.screen.dao.impl;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.MaterialDao;
import com.dy.lock.screen.pojo.MaterialInfo;

@Repository("materialDao")
public class MaterialDaoImpl extends BaseDaoImpl<MaterialInfo, String>
		implements MaterialDao {

	@Override
	public String getQueryNamespace() {
		return "mybatis.xml.MaterialMapper";
	}

	@Override
	public MaterialInfo queryByPrimaryKey(String mid) {
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".selectByPrimaryKey", mid);
	}

}
